package si.yun.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-08-14 09:32:42 
 */
@Entity
@Table ( name ="sy_dept" )
public class SyDept  implements Serializable {

	private static final long serialVersionUID =  2656184456204031343L;

	/**
	 * 自增
	 */
   	@Column(name = "dept_id" )
	private Integer deptId;

	/**
	 * 部门名称
	 */
   	@Column(name = "dept_name" )
	private String deptName;

	/**
	 * 部门描述
	 */
   	@Column(name = "dept_descirbe" )
	private String deptDescirbe;

	/**
	 * 上级部门id
	 */
   	@Column(name = "parent_id" )
	private Integer parentId;

	/**
	 * 创建者
	 */
   	@Column(name = "create_id" )
	private Integer createId;

	/**
	 * 创建时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "create_date" )
	private String createDate;

	/**
	 * 更新者
	 */
   	@Column(name = "update_id" )
	private Integer updateId;

	/**
	 * 更新时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "update_date" )
	private String updateDate;

	/**
	 * 1.启用 2.未启用
	 */
   	@Column(name = "dept_status" )
	private Integer deptStatus;

  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }


  public String getDeptName() {
    return deptName;
  }

  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }


  public String getDeptDescirbe() {
    return deptDescirbe;
  }

  public void setDeptDescirbe(String deptDescirbe) {
    this.deptDescirbe = deptDescirbe;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }


  public Integer getCreateId() {
    return createId;
  }

  public void setCreateId(Integer createId) {
    this.createId = createId;
  }


  public String getCreateDate() {
    return createDate;
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }


  public Integer getUpdateId() {
    return updateId;
  }

  public void setUpdateId(Integer updateId) {
    this.updateId = updateId;
  }


  public String getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(String updateDate) {
    this.updateDate = updateDate;
  }


  public Integer getDeptStatus() {
    return deptStatus;
  }

  public void setDeptStatus(Integer deptStatus) {
    this.deptStatus = deptStatus;
  }

}
